package com.sls.mall.product.feign;

import com.sls.mall.common.to.SkuReductionTO;
import com.sls.mall.common.to.SpuBoundTO;
import com.sls.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lixue
 * @Title: CouponFeignService
 * @ProjectName sls_mall2021
 * @Description: TODO
 * @date 2021/4/2921:09
 */
@FeignClient(value = "mall-coupon")
public interface CouponFeignService {

    /**
     *
     *   只要json 数据模型是兼容的，双方服务无需使用同一个 TO
     *
     * @param spuBoundTO
     * @return
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTO spuBoundTO);

    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTO skuReductionTO);
}
